<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="java.util.List"%>
<%@page import="com.qdu.entity.Movie"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="css/bootstrap.min.css"/>
        <link rel="stylesheet" href="css/style.css"/>
        <script src="js/jquery-3.4.1.min.js"></script>
        <script src="js/bootstrap.min.js"></script>
        <script src="js/script.js" charset="UTF-8"></script>
        <title>我的收藏夹</title>
    </head>
    <body>

        <div class="container">

            <h3 class="text-center text-danger">我的电影</h3>
            <br>

            <div class="row container">
                <c:forEach items="${MovieFavoritesList}" var="m">
                    <div class="col-md-4" id="id${m.movieId}" style="margin: 55px">
                        <a class="item" target="_blank" href="gmis?movieId=${m.movieId}">
                            <div class="container">
                                <img src="images/${m.mcover}" alt="${m.mchineseName}" style="width: 430px;height: 510px" class="container">
                                <br><br>
                                &nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 20px">${m.mchineseName} &nbsp;&nbsp;&nbsp;</span>
                                <br><br>
                                &nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 20px">导演：${m.mdirector}</span>
                            </div>
                        </a>
                        <br>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a style="color: orange" href="javascript:deleteFavorites('${m.movieId}');">移除收藏夹</a>
                        <br><br>
                    </div>
                </c:forEach>
            </div>
        </div>

        <hr class="clear">

    </body>
</html>
